package com.guaoran.commons.swagger.ui;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author : 孤傲然
 * @description : 因为 security 目前的实现时高优先级为主，这里改造后者覆盖前者
 * @date :2020/8/5 12:50
 */
public interface IWebSecurityConfigurer {
    /**
     * @see WebSecurityConfigurerAdapter#configure(HttpSecurity)
     * @param http
     * @throws Exception
     */
    default void configure(HttpSecurity http) throws Exception{
        // DO NOTHING
    }

    /**
     * @see WebSecurityConfigurerAdapter#configure(WebSecurity)
     * @param web
     * @throws Exception
     */
    default void configure(WebSecurity web) throws Exception{
        // DO NOTHING
    }
}
